import os from 'os';
import path from 'path';

function getUserDataPath() {
  if (process.platform === 'darwin') {
    return path.resolve(os.homedir(), 'Library/Application Support/zzBim');
  }
  if (process.platform === 'win32') {
    return path.resolve(os.homedir(), 'AppData/Roaming/zzBim');
  }
  if (process.platform === 'linux') {
    return path.resolve(os.homedir(), '.config/zzBim');
  }
  return '';
}

export { getUserDataPath };
